﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RPG
{
    class Monster
    {
        public string Name
        {
            get;
            set;
        }
        private  int hp;
        public  int HP
        {
            get { return hp; }
            set { hp = value; }
        }
        public Monster(string name, int val)
        {
            Name = name;
            hp = val;
        }

        public void Hit()
        {
            if (hp <= 0)
                Console.WriteLine("怪兽死亡");
            return;
        }
    }
}
